package com.brillilab.common.constant;

import lombok.Getter;

/**
 * @author linzhikang
 * @description
 * @date 2019-08-15 17:44
 */
@Getter
public enum ReportFormDateTypeEnum {
    NEW_EXPERIMENT(1, "新增实验"),
    FINISH_EXPERIMENT(2, "完成实验"),
    EXPERIMENT_ACCESS(3, "实验台访问"),
    METHOD_ACCESS(4, "方法库访问"),
    MATERIEL_ACCESS(5, "物料库访问"),
    WORK_PLAN_ACCESS(6, "周计划访问"),
    HAVA_PALT_EXPERIMENT(7, "有多孔板实验"),
    NO_PALT_EXPERIMENT(8, "无多孔板实验"),
    HAVA_RESULT_EXPERIMENT(9, "有结果实验"),
    NO_RESULT_EXPERIMENT(10, "无结果实验"),
    NEW_REAGENT(11, "新增试剂"),
    NEW_REAGENT_TYPE(12, "新增试剂种类"),
    NEW_TOPIC(13, "新增课题"),
    NEW_METHOD_RECOMMEND(14, "新增方法推荐"),
    NEW_REAL_USE_METHOD(15, "新增实际使用方法"),
    RESEARCH_USER_ACTIVE(16, "科研机构用户活跃量"),
    COMPANY_USER_ACTIVE(17, "企业用户活跃量"),
    RESEARCH_LAB_ACTIVE(18, "科研机构实验室活跃量"),
    COMPANY_LAB_ACTIVE(19, "企业实验室活跃量"),
    ;
    private Integer value;
    private String name;

    ReportFormDateTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public static String getKey(Integer value) {
        for (ReportFormDateTypeEnum r : ReportFormDateTypeEnum.values()) {
            if (r.getValue().equals(value)) {
                return r.name;
            }
        }
        return null;
    }
}
